﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/_layouts/application.master" Inherits="AWS.SLAM.Administration.Diagnostics, AWS.SLAM, Version=1.0.3.0, Culture=neutral, PublicKeyToken=28f8d30936a98765" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="PageTitle"
						Text="SLAM Control Panel - Diagnostics"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:EncodedLiteral ID="TitleArea"
						Text="SLAM Control Panel - Diagnostics"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <div>View Diagnostic information useful for debugging SLAM issues.</div>
    <br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <asp:Panel ID="optionsPanel" runat="server">
        <wssuc:InputFormSection runat="server" Title="View Recent Messages" Description="View recent informational and error messages logged in SLAM's message log table from the last 30 days." >
            <Template_InputFormControls>
                <asp:Button ID="btnViewMessages" Text="View Messages" runat="server" CssClass="ms-ButtonHeightWidth" OnClick="btnViewMessages_Click" />
            </Template_InputFormControls>
        </wssuc:InputFormSection> 
    </asp:Panel>
    
    <wssuc:buttonsection runat="server" ShowStandardCancelButton="false">
        <Template_Buttons>
            <asp:Button UseSubmitBehavior="false" runat="server" CssClass="ms-ButtonHeightWidth" Text="Back" id="btnBack" OnClick="btnBack_Click"/>
        </Template_Buttons>
    </wssuc:buttonsection>
    
    <asp:Panel ID="messagesPanel" runat="server">
        <asp:Label ID="lblErrorMessages" runat="server" ForeColor="Red"></asp:Label>
        <SharePoint:SPGridView ID="gvTopErrorMessages" AutoGenerateColumns="false" runat="server">
            <EmptyDataTemplate>
                There are no SLAM error messages from the last 30 days.
            </EmptyDataTemplate>
            <EmptyDataRowStyle Font-Size="12px" />
            <Columns>
                <asp:BoundField ItemStyle-Width="140px" DataField="MessageDate" ShowHeader="true" HeaderText="Date" />
                <asp:BoundField ItemStyle-Width="90px" DataField="MessageType" ShowHeader="true" HeaderText="Type" />
                <asp:BoundField DataField="Message" ShowHeader="true" HeaderText="Message" />
            </Columns>
        </SharePoint:SPGridView>
    </asp:Panel>
</asp:Content>
